
@use '@/styles/global-class.scss';
@use '@/styles/theme.scss';
@use '@/styles/element-status.scss';
@use 'nprogress/nprogress.css';

body {
  width: 100vw;
  color: #495164;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: #f5f7fa;
}

html {
  font-size: 14px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  overflow-y: scroll;
}

:root {
  overflow-y: auto;
  overflow-x: hidden;
}

:root body {
  position: absolute;
}

#app, body, html {
  height: 100%;
}

body,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
hr,
button,
article,
aside,
details,
figcaption,
figure,
footer,
header,
menu,
nav,
section {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  background-color: transparent;
  outline: none;
}

ul, ol {
  list-style: none;
}

svg {
  box-sizing: content-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(#000, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background: rgba(#000, 0.06);
  border-radius: 3px;
}

// el-table 表格与表头错位 bug
body .el-table th.gutter {
  display: table-cell !important;
}

body .el-table colgroup.gutter {
  display: table-cell !important;
}

table {
  width: 100% !important;
}

// https://stackoverflow.com/questions/43778196/input-background-removed-by-chrome-autofill
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset;
  -moz-box-shadow: 0 0 0 100px #fff inset;
  box-shadow: 0 0 0 100px #fff inset;
}
